import request from "@/utils/request";

//获取所有工作者列表
export const getAllWorkerList = (data) => {
    return request({
        method: 'post',
        url: 'api/x-work/worker_page',
        data: data
    })
}

//禁用或启动工作者状态(管理员权限才能操作)
export const StopOrStartWorker = (data) => {
    return request({
        method: 'put',
        url: 'api/x-work/worker_examine',
        data: data
    })
}



//根据指定的用户分配角色
export const alloccateUserRoles = (data) => {
    return request({
        method: 'post',
        url: 'api/x-menu-role/distribute_role',
        data: data
    })
}

